export default {
  dataList: [],
  subscribe(cb) {
    this.dataList.push(cb);
  },
  publish(value) {
    this.dataList.forEach((cb) => cb(value));
  },
};
